<T:ViewBase x:Class="WPFExcelReport.TVLSPEDV02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVVERSART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVVERSART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVSPED:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVSPED}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVTARIF:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVTARIF}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVVERSI:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVVERSI}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVGDATV:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVGDATV}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVGDATB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVGDATB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVMARGEF:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVMARGEF}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVSPERRIG:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVSPERRIG}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVTPMBERKZ:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVTPMBERKZ}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=VLVTPMRUE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwVLSPEDV.VLVTPMRUE}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsVLSPEDV,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwVLSPEDV}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwVLSPEDV, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="VLVMANDANT"
                                    Binding="{Binding Path=VLVMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVVERSART"
                                    Binding="{Binding Path=VLVVERSART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVVERSART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSPED"
                                    Binding="{Binding Path=VLVSPED, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSPED}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVTARIF"
                                    Binding="{Binding Path=VLVTARIF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVTARIF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVVERSI"
                                    Binding="{Binding Path=VLVVERSI, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVVERSI}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVGDATV"
                                    Binding="{Binding Path=VLVGDATV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVGDATV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVGDATB"
                                    Binding="{Binding Path=VLVGDATB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVGDATB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVMARGEF"
                                    Binding="{Binding Path=VLVMARGEF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVMARGEF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSPERRIG"
                                    Binding="{Binding Path=VLVSPERRIG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSPERRIG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVTPMBERKZ"
                                    Binding="{Binding Path=VLVTPMBERKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVTPMBERKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVTPMRUE"
                                    Binding="{Binding Path=VLVTPMRUE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVTPMRUE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVMARGER"
                                    Binding="{Binding Path=VLVMARGER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVMARGER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVGEWMAX"
                                    Binding="{Binding Path=VLVGEWMAX, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVGEWMAX}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVOKLMAX"
                                    Binding="{Binding Path=VLVOKLMAX, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVOKLMAX}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVOKLFST"
                                    Binding="{Binding Path=VLVOKLFST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVOKLFST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVNACHNA"
                                    Binding="{Binding Path=VLVNACHNA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVNACHNA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVNNAMIN"
                                    Binding="{Binding Path=VLVNNAMIN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVNNAMIN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVZOLLGB"
                                    Binding="{Binding Path=VLVZOLLGB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVZOLLGB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVZUSCHKZ"
                                    Binding="{Binding Path=VLVZUSCHKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVZUSCHKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSABISKG"
                                    Binding="{Binding Path=VLVSABISKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSABISKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSAPROKG"
                                    Binding="{Binding Path=VLVSAPROKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSAPROKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSAZUWERT"
                                    Binding="{Binding Path=VLVSAZUWERT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSAZUWERT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSAZUMIN"
                                    Binding="{Binding Path=VLVSAZUMIN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSAZUMIN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSAWSL"
                                    Binding="{Binding Path=VLVSAWSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSAWSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVSASTEUER"
                                    Binding="{Binding Path=VLVSASTEUER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVSASTEUER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVBEBISKG"
                                    Binding="{Binding Path=VLVBEBISKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVBEBISKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVBEPROKG"
                                    Binding="{Binding Path=VLVBEPROKG, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVBEPROKG}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVBEZUWERT"
                                    Binding="{Binding Path=VLVBEZUWERT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVBEZUWERT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVBEZUMIN"
                                    Binding="{Binding Path=VLVBEZUMIN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVBEZUMIN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVBEWSL"
                                    Binding="{Binding Path=VLVBEWSL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVBEWSL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVBESTEUER"
                                    Binding="{Binding Path=VLVBESTEUER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVBESTEUER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVBETEXT"
                                    Binding="{Binding Path=VLVBETEXT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVBETEXT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVFILLER"
                                    Binding="{Binding Path=VLVFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVNEUBEN"
                                    Binding="{Binding Path=VLVNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVNEUDAT"
                                    Binding="{Binding Path=VLVNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVNEUDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVAENDBEN"
                                    Binding="{Binding Path=VLVAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVAENDDAT"
                                    Binding="{Binding Path=VLVAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="VLVAENDZL"
                                    Binding="{Binding Path=VLVAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=VLVAENDZL}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
